﻿<UserControl x:Class="EnumLists.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:my="clr-namespace:EnumLists"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Canvas x:Name="LayoutRoot" Background="White">
        <Canvas.DataContext>
            <my:MainPageViewModel/>
        </Canvas.DataContext>
        <TextBlock Canvas.Left="55" Canvas.Top="40" Height="28" Name="label1" Width="75" Text="Weekdays:" />
        <ComboBox Canvas.Left="137" Canvas.Top="42" Height="23" Name="comboBox1" Width="120" ItemsSource="{Binding Path=Weekdays}" DisplayMemberPath="Name" SelectedItem="{Binding Path=SelectedWeekday, Mode=TwoWay}" />
        <TextBlock Canvas.Left="55" Canvas.Top="74" Height="28" Name="label2" Width="75" Text="Value:" />
        <TextBlock Canvas.Left="55" Canvas.Top="108" Text="Name:" Height="28" Name="label3" Width="75" />
        <TextBlock Canvas.Left="137" Canvas.Top="80" Height="23" Name="textBlock1" Text="{Binding Path=WeekdayValue}" />
        <TextBlock Canvas.Left="137" Canvas.Top="114" Height="23" Name="textBlock2" Text="{Binding Path=WeekdayName}" />
    </Canvas>
</UserControl>
